package com.shilan.dllo.wangyi.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
import android.view.Window;

import com.shilan.dllo.wangyi.R;

import java.util.logging.Handler;

/**
 * Created by dllo on 15/11/11.
 */
public class SplashActivity extends Activity{

   private android.os.Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_splish);

     handler = new android.os.Handler(new android.os.Handler.Callback() {
         @Override
         public boolean handleMessage(Message msg) {

             Intent intent = new Intent(SplashActivity.this,MainActivity.class );
             startActivity(intent);
             finish();
             return false;
         }
     });
        handler.sendEmptyMessageDelayed(100,2000);
    }
}
